package com.dxl.base.util;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

/**
 * <b>
 * </b><br><br><i>Description</i> :
 * <br> Author : dxl
 * <br> Date : 2019/10/2 20:26
 */
public class LocalDateTimeUtil {
    public static LocalDateTime getLocalDateTime(){
        Date date = new Date();
        Instant instant = date.toInstant();
        ZoneId zone = ZoneId.systemDefault();
        LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, zone);
        return localDateTime;
    }
}
